package renda.dao.serivce.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import renda.dao.TopicChildDAO;
import renda.dao.serivce.TopicChildService;
import renda.pojo.Topicchild;

@Service("topicChildService")
public class TopicChildServiceImpl implements TopicChildService {

	@Resource(name = "topicChildDAO")
	private TopicChildDAO topicChildDAO;

	public List<Topicchild> listByTopicId(Integer topicsId, int offset, int length) {
		return topicChildDAO.listByTopicId(topicsId, offset, length);
	}

	public Topicchild saveTopicchild(Topicchild topicchild) {
		return topicChildDAO.saveTopicchild(topicchild);
	}

}
